.\"     Title: ne_i18n_init
.\"    Author: 
.\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
.\"      Date: 20 August 2008
.\"    Manual: neon API reference
.\"    Source: neon 0.28.3
.\"
.TH "NE_I18N_INIT" "3" "20 August 2008" "neon 0.28.3" "neon API reference"
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.SH "NAME"
ne_i18n_init - functions to initialize internationalization support
.SH "SYNOPSIS"
.sp
.ft B
.nf
#include <ne_i18n\.h>
.fi
.ft
.HP 18
.BI "void ne_i18n_init(const\ char\ *" "encoding" ");"
.SH "DESCRIPTION"
.PP
The
\fBne_i18n_init\fR
function can be used to enable support for translated messages in the neon library\. The
\fIencoding\fR
parameter, if non\-NULL, specifies the character encoding required for generated translated string\. If it is
NULL, the appropriate character encoding for the process locale will be used\.
.PP
This call is only strictly necessary if either:
.sp
.RS 4
\h'-04' 1.\h'+02'neon has been installed into a different prefix than the
gettext
implementation on which it depends for i18n purposes, or
.RE
.sp
.RS 4
\h'-04' 2.\h'+02'the caller requires that translated messages are in a particular character encoding\.
.RE
.PP
If
\fBne_i18n_init\fR
is never called, the message catalogs will not be found if case (a) applies (and so English error messages will be used), and will use the default character encoding specified by the process locale\. The library will otherwise operate correctly\.
.PP
Note that the encoding used is a process\-global setting and so results may be unexpected if other users of neon within the process call
\fBne_i18n_init\fR
with a different encoding parameter\.
.SH "SEE ALSO"
.PP
ne_sock_init
.SH "AUTHOR"
.PP
\fBJoe Orton\fR <\&neon@lists.manyfish.co.uk\&>
.sp -1n
.IP "" 4
Author.
.SH "COPYRIGHT"
